package cn.varin.mqttclientapi.controller;

import cn.varin.mqttclientapi.entity.User;
import io.swagger.v3.core.util.Json;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;



@RequestMapping("/test")
@RestController
@Tag(name = "测试接口")
public class TestController {

    @Operation(summary = "hello接口")
    @GetMapping("/hello")
    public User  hello(){

        return new  User("varya",1);
    }
}
